﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sealight.Core.DataAdapter;

namespace Sealight.Core.Domain
{
   public class PictureEntity:BaseEntity
    {
       public virtual Guid PictureID { get; set; }

       public virtual string Name { get; set; }

       public virtual string PictureURL { get; set; }

       public virtual string Extension { get; set; }

       public virtual int Order { get; set; }

       public virtual IList<ProductEntity> Product { get; set; }

       public virtual picture ToDataAdapter()
       {

           picture entity = new picture
           {
               id = this.PictureID,
               name = this.Name,
               picture_url = this.PictureURL,
               order = this.Order,
               extension = this.Extension
           };

           return entity;
       }
    }
}
